"-------------------------------------插件-----------------------------------

filetype plugin on
"✅ 允许 Vim 自带脚本根据文件类型自动设置缩进
filetype plugin indent on

"✅ 文件浏览器插件:interface---------------------------------------------------
"✅ NERDTree
autocmd StdinReadPre * let s:std_in=1




"✅ 代码阅读插件:code---------------------------------------------------------
"✅indentLine
let g:indentLine_enabled = 1
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
" Vim
let g:indentLine_color_term = 239
" none X terminal
let g:indentLine_color_tty_light = 7 " (default: 4)
let g:indentLine_color_dark = 1 " (default: 2)
" Background
let g:indentLine_bgcolor_term = 202

"⚠️tagbar-https://github.com/drbarrett/tagbar
if has('ivim')
    let g:tagbar_ctags_bin = 'ictags'
else
    let g:tagbar_ctags_bin = 'ctags'
let g:tagbar_left = 1
let g:tagbar_autofocus =1

" 设置ctags所在路径
let g:tagbar_ctags_bin='/usr/bin/ctags'
" 设置tagbar的宽度
let g:tagbar_width=30
" 在某些情况下自动打开tagbar
autocmd BufReadPost *.py,*.c,*.h,*.cpp,*.hpp,*.cc,*.cxx call tagbar#autoopen()


"vim-gutentag

"⚠️vista
" How each level is indented and what to prepend.
" This could make the display more compact or more spacious.
" e.g., more compact: ["▸ ", ""]
" Note: this option only works the LSP executives, doesn't work for `:Vista ctags`.
let g:vista_icon_indent = ["╰─▸ ", "├─▸ "]

" Executive used when opening vista sidebar without specifying it.
" See all the avaliable executives via `:echo g:vista#executives`.
let g:vista_default_executive = 'ictags'

" Set the executive for some filetypes explicitly. Use the explicit executive
" instead of the default one for these filetypes when using `:Vista` without
" specifying the executive.
let g:vista_executive_for = {
  \ 'cpp': 'vim_lsp',
  \ 'php': 'vim_lsp',
  \ }

" Declare the command including the executable and options used to generate ctags output
" for some certain filetypes.The file path will be appened to your custom command.
" For example:
let g:vista_ctags_cmd = {
      \ 'haskell': 'hasktags -x -o - -c',
      \ }

" To enable fzf's preview window set g:vista_fzf_preview.
" The elements of g:vista_fzf_preview will be passed as arguments to fzf#vim#with_preview()
" For example:
let g:vista_fzf_preview = ['right:50%']



"⚠️LeaderF
let g:Lf_ShowRelativePath = 0
let g:Lf_HideHelp = 1
let g:Lf_PreviewResult = {'Function':0, 'Colorscheme':1}


"✅ 辅助插件:plugin-----------------------------------------------------------


"✅ 功能强化插件:enhance-------------------------------------------------------
"⚠️YankRing
"将yankring的历史文件夹移到~/.vim
"let g:yankring_history_dir = $HOME.'/.vim/'
"修改历史文件名
"let g:yankring_history_file = '.yankring_history'







